package com.jiyun;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 文件名:MyRabbitConfig
 * 创建者:W  j b
 * 创建时间:2022/5/26 11:30
 * 描述:这是一个实例
 * @author lenovo
 */

@Configuration
public class MyRabbitConfig {

    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
